package com.wanwen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName(value="role_modules")
public class RoleModules {
	@TableId(type=IdType.AUTO)
	private Integer id;//编号
	@TableField(value = "modul_id")
	private Integer modulId;//模块id
	@TableField(value = "role_id")
	private Integer roleId;//角色id
	public RoleModules(Integer id, Integer modulId, Integer roleId) {
		super();
		this.id = id;
		this.modulId = modulId;
		this.roleId = roleId;
	}
	public RoleModules() {
		super();
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getModulId() {
		return modulId;
	}
	public void setModulId(Integer modulId) {
		this.modulId = modulId;
	}
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	@Override
	public String toString() {
		return "RoleModules [id=" + id + ", modulId=" + modulId + ", roleId=" + roleId + "]";
	}
	
	
}
